#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
int main() {
	char str1[1001] = { 0 };
	char str2[1001] = { 0 };
	gets(str1);
	gets(str2);
	int len1 = strlen(str1);
	int len2 = strlen(str2);
	int count = 0;
	for (int i = 0; i <= len1-len2; i++) {
		if (strncmp(str2, &str1[i], len2) == 0) {
			count++;
		}
	}
	printf("%d", count);
	return 0;
}